home *** CD-ROM | disk | FTP | other *** search
/ The Business Master (3rd Edition) / The Business Master (3rd Edition).iso / files / utilfile / safepack / recover.doc < prev    next >
Encoding:
Text File  |  1992-04-03  |  7.5 KB  |  163 lines

  1.  
  2.                                   Disk Recovery
  3.                                   =============
  4.  
  5.        I sincerely hope that you will never need to use the information
  6.        in this file, but include it just in case any mishaps occur whilst
  7.        SAFEPACK is running.
  8.  
  9.        Due to the way that SAFEPACK is written, disruption of the program
  10.        at any stage should not affect the integrity of your data, but may
  11.        cause minor disruption to the organisation of the disk, such that
  12.        it should be tidied up before further use.  This file contains
  13.        information on how do perform this tidying, and an explanation of
  14.        the error messages that may be encountered.
  15.  
  16.        In the vast majority of cases of interruption to the program,
  17.        including all cases of user break-in with ctrl-break, the disk
  18.        should remain in a perfectly acceptable, usable condition, causing
  19.        DOS no problems.  It may well be even more fragmented than before,
  20.        but that shouldn't cause any problems that another run of SAFEPACK
  21.        wouldn't cure!  In rare cases, however, if the interruption occurs
  22.        while the directories are being written, two types of 'error' will
  23.        be noticed by CHKDSK, namely:
  24.  
  25.        1) Invalid sub-directory
  26.        ------------------------
  27.  
  28.        Despite sounding serious, the form of this error left by SAFEPACK
  29.        is actually very minor, and refers to the fact that the .. entry
  30.        at the start of a sub-directory may not point correctly to the
  31.        parent directory.  Since the parent's entry pointing at the
  32.        sub-directory is correct, CHKDSK can fix this fault easily and
  33.        automatically if run with the /F switch, i.e. CHKDSK drive: /F.
  34.  
  35.        2) 'Lost' clusters
  36.        ------------------
  37.  
  38.        This error can occur as moved clusters at the start of a file are
  39.        allocated together into a chain before the directory entry
  40.        pointing at them is updated, and the originals are only
  41.        de-allocated after the directory is updated.  If, therefore, the
  42.        defragmentation is interrupted in the middle of this process, then
  43.        one or other of the chains will be reported by CHKDSK as 'lost'. 
  44.        As the contents of the chains are identical, either chain is
  45.        equally valid, and the 'lost' clusters may safely be freed, making
  46.        their disk space available for re-use.  This is most simply
  47.        accomplished by running CHKDSK with the /F switch, and then
  48.        answering NO to the question about whether to convert lost
  49.        clusters to files.  Should you have any worries about doing this,
  50.        however, you can easily answer YES to this question then copy the
  51.        files of the form FILExxxx.CHK (all in root directory), to another
  52.        sick before deleting them.
  53.  
  54.  
  55.                 --- SAFEPACK Recovery Information --- Page 1 ---
  56.  
  57.  
  58.        If other errors are reported by CHKDSK, it would be unwise to
  59.        trust the data on the disk, and it is probably best to re-format
  60.        the disk and restore the backup you took before running SAFEPACK. 
  61.        If any such problems occur, please contact the author, with as
  62.        much detail as possible about the circumstances.
  63.  
  64.  
  65.        SAFEPACK Error Messages
  66.        =======================
  67.  
  68.        The majority of SAFEPACK error messages are self-explanatory, and
  69.        most refer to user errors on the command-line such as requesting
  70.        defragmentation of a non-existent disk.  Some, however, require
  71.        more explanation.
  72.  
  73.  
  74.        Multi-tasking environment XXX or FASTOPEN detected
  75.        --------------------------------------------------
  76.  
  77.        It is not safe to defragment a disk from within a multi-tasking
  78.        environment such as Windows, and SAFEPACK contains checks for the
  79.        more common of such environments.  If you encounter this message
  80.        and are running a multi-tasking environment, terminate the multi-
  81.        tasker before re-running SAFEPACK.  If FASTOPEN is found, then it
  82.        is necessary to reboot after removing FASTOPEN from the CONFIG.SYS
  83.        or AUTOEXEC.BAT file. If you really wish to defragment under such
  84.        circumstances and understand what you are doing, or if this error
  85.        occurs without obvious reason, then the checks may be by-passed
  86.        with the /B option.  If this error is reported, no writing to the
  87.        disk will have occurred.
  88.  
  89.  
  90.        Error in the File Allocation Table
  91.        ----------------------------------
  92.  
  93.        SAFEPACK performs a stringent test of the disk's file structure
  94.        before starting to defragment it, and will abort with this message
  95.        if any errors are found, however minor.  Most common errors may be
  96.        fixed by running CHKDSK with the /F switch  - see the DOS manual
  97.        for details.  If this error is reported, no writing to the disk
  98.        will have occurred.
  99.  
  100.  
  101.        Insufficient memory for the program to continue
  102.        -----------------------------------------------
  103.  
  104.        This error is most likely to occur if there are more than about
  105.        5000 files on the disk, or if you have less than 500k of free
  106.        memory.  Under some circumstances, it may be possible to run
  107.        SAFEPACK again with the same options, with success.  The disk
  108.        should remain fully usable after this error, which is a
  109.        'controlled exit'.
  110.  
  111.                 --- SAFEPACK Recovery Information --- Page 2 ---
  112.  
  113.  
  114.  
  115.        Disk read/write errors
  116.        ----------------------
  117.  
  118.        These may be reported under a variety of names such as write
  119.        protect, drive not ready, data error (CRC), seek error, sector not
  120.        found, write fault, read fault, or general failure. If any of
  121.        these errors occur, then there is likely to be a hardware or
  122.        magnetic surface error on the disk concerned, and SAFEPACK will
  123.        ask whether to retry or to abort - the normal ignore option is not
  124.        provided, as misreads of directory sectors could have disastrous
  125.        results.  If you have a utility to check &/or repair bad sectors
  126.        then this should be used, but otherwise it may be best to reformat
  127.        the disk, and restore your backup.  Note that errors of this type
  128.        are not normally detected by CHKDSK.
  129.  
  130.  
  131.        SAFEPACK Internal errors
  132.        ------------------------
  133.  
  134.        SAFEPACK contains several internal error checks to ensure that it
  135.        is functioning correctly, and if any of these fail then it aborts,
  136.        quoting an error number.  These errors should never be seen by
  137.        users, but can be produced if another program is accessing the
  138.        disk at the same time as SAFEPACK, as can occur if it is used
  139.        under a multi-tasking environment with the /B option.  Should an
  140.        internal error be reported, please check your disk with CHKDSK,
  141.        and contact the author, providing as much detail as possible about
  142.        the circumstances.  
  143.  
  144.  
  145.        Conclusion
  146.        ==========
  147.  
  148.        I hope that this file does not scare anyone from using SAFEPACK,
  149.        as I have yet to know it fail, but only a fool would believe
  150.        himself to have created a perfect program, and I believe that an
  151.        honest discussion of potential problems, however unlikely, is
  152.        better than pretending that they do not exist.  
  153.  
  154.        If nothing else, I hope that this document will persuade users to
  155.        perform a full backup of their disk before running ANY
  156.        defragmenter, especially one without SAFEPACK's safety features!
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.                 --- SAFEPACK Recovery Information --- Page 3 ---
  168.  
  169.